package com.common.myspring.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: xuxiang
 * @Date: 2023-8-26 14:22:22
 * @Description: 属性注入注解
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Resource {

    /**
     * 名称DI
     */
    String value() default "";

    /**
     * 必须
     */
    boolean required() default true;
}
